home *** CD-ROM | disk | FTP | other *** search
/ Freelog 22 / freelog 22.iso / Prog / Djgpp / GPC2952B.ZIP / lib / gcc-lib / djgpp / 2.952 / units / overlay.pas < prev    next >
Encoding:
Pascal/Delphi Source File  |  2001-02-08  |  2.3 KB  |  110 lines

  1. {
  2. Dummy BP compatible overlay unit for GPC
  3.  
  4. Copyright (C) 1998-2001 Free Software Foundation, Inc.
  5.  
  6. Author: Frank Heckenbach <frank@pascal.gnu.de>
  7.  
  8. This file is part of GNU Pascal.
  9.  
  10. GNU Pascal is free software; you can redistribute it and/or modify
  11. it under the terms of the GNU General Public License as published by
  12. the Free Software Foundation; either version 2, or (at your option)
  13. any later version.
  14.  
  15. GNU Pascal is distributed in the hope that it will be useful,
  16. but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18. GNU General Public License for more details.
  19.  
  20. You should have received a copy of the GNU General Public License
  21. along with GNU Pascal; see the file COPYING. If not, write to the
  22. Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
  23. 02111-1307, USA.
  24.  
  25. As a special exception, if you link this file with files compiled
  26. with a GNU compiler to produce an executable, this does not cause
  27. the resulting executable to be covered by the GNU General Public
  28. License. This exception does not however invalidate any other
  29. reasons why the executable file might be covered by the GNU General
  30. Public License.
  31. }
  32.  
  33. {$gnu-pascal,B-,I-}
  34.  
  35. unit Overlay;
  36.  
  37. interface
  38.  
  39. const
  40.   ovrOk = 0;
  41.   ovrError = - 1;
  42.   ovrNotFound = - 2;
  43.   ovrNoMemory = - 3;
  44.   ovrIOError = - 4;
  45.   ovrNoEMSDriver = - 5;
  46.   ovrNoEMSMemory = - 6;
  47.  
  48. const
  49.   OvrEmsPages  : Word = 0;
  50.   OvrTrapCount : Word = 0;
  51.   OvrLoadCount : Word = 0;
  52.   OvrFileMode  : Byte = 0;
  53.  
  54. type
  55.   OvrReadFunc = function (OvrSeg : Word) : Integer;
  56.  
  57. var
  58.   OvrReadBuf : OvrReadFunc;
  59.   OvrResult  : Integer = 0;
  60.  
  61. procedure OvrInit (aFileName : String);
  62. procedure OvrInitEMS;
  63. procedure OvrSetBuf (Size : LongInt);
  64. function  OvrGetBuf : LongInt;
  65. procedure OvrSetRetry (Size : LongInt);
  66. function  OvrGetRetry : LongInt;
  67. procedure OvrClearBuf;
  68.  
  69. implementation
  70.  
  71. procedure OvrInit (aFileName : String);
  72. var Dummy : Integer;
  73. begin
  74.   Dummy := Length (aFileName);
  75.   OvrResult := ovrOK
  76. end;
  77.  
  78. procedure OvrInitEMS;
  79. begin
  80.   OvrResult := ovrNoEMSDriver
  81. end;
  82.  
  83. procedure OvrSetBuf (Size : LongInt);
  84. var Dummy : Integer;
  85. begin
  86.   Dummy := Size
  87. end;
  88.  
  89. function OvrGetBuf : LongInt;
  90. begin
  91.   OvrGetBuf := 0
  92. end;
  93.  
  94. procedure OvrSetRetry (Size : LongInt);
  95. var Dummy : Integer;
  96. begin
  97.   Dummy := Size
  98. end;
  99.  
  100. function OvrGetRetry : LongInt;
  101. begin
  102.   OvrGetRetry := 0
  103. end;
  104.  
  105. procedure OvrClearBuf;
  106. begin
  107. end;
  108.  
  109. end.
  110.